package com.snowwolf.user.service.mongodb;

import com.snowwolf.user.entity.mongodb.NewsMdbEo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author: topsnowwolf
 * @description:
 * @date: Create in 2019/3/16 9:27
 * @modified by:
 * @versions：0.1.0
 */
public interface INewService {
    String save(NewsMdbEo newsMdbEo);
    NewsMdbEo findById(String id);
    List<NewsMdbEo> findAll();
    String update(NewsMdbEo newsMdbEo);
    Page<NewsMdbEo> findByPage(NewsMdbEo newsMdbEo, Pageable page);
}
